Component({
  properties: {
    orderStr: String
  },
  data: {
    order: {}
  },
  methods: {
    back() {
      wx.navigateBack()
    }
  },
  lifetimes: {
    attached() {
      this.setData({
        order: JSON.parse(this.properties.orderStr)
      })
    }
  }
})